The splice() method of Array instances changes the contents of an array by removing or replacing existing elements and/or adding new elements in place. Array.prototype.slice() · Array.prototype.toSpliced() · toLocaleString()
The splice() method is a built-in method for JavaScript Array objects. It lets you change the content of your array by removing or replacing existing elements ...